<?php

use Illuminate\Support\Facades\DB;
use App\Tools\Common;


$router = app('router');

$router->get('statistics', function () {
    return 'statistics';
});

$router->get('statistics/test', 'Packages\Statistics\Controllers\Admin\StatisticsController@userCount');

// 统计管理 admin
$router->group(['namespace' => 'Packages\Statistics\Controllers\Admin', 'prefix' => 'api/statistics'], function () use ($router) {
    $router->post('/user/count', 'StatisticsController@userCount');
    $router->post('/order/count', 'StatisticsController@orderCount');
    $router->post('/product/count', 'StatisticsController@productCount');
    $router->post('/task/count', 'StatisticsController@taskCount');
});
